#include <bits/stdc++.h>
using namespace std;

template < typename T >
inline void read(T &x)
{
    x = 0;
    bool flg = 0;
    char c;
    while ((c = getchar()) < 48 || c > 57)
        if (c == '-') flg = 1;
    do
    {
        x = (x << 1) + (x << 3) + (c ^ 48);
    } while ((c = getchar()) > 47 && c < 58);
    if (flg) x = -x;
}

int OUTPUT[45];

template < typename T >
inline void write(T x)
{
    if (x < 0)
    {
        putchar('-');
        x = -x;
    }
    int len = 0;
    do
    {
        OUTPUT[++len] = ((x % 10) | 48);
        x /= 10;
    } while (x);
    while (len)
        putchar(OUTPUT[len--]);
}

template < typename T >
inline void writesp(T x)
{
    write(x);
    putchar(32);
}

template < typename T >
inline void writeln(T x)
{
    write(x);
    putchar(10);
}

const int N = 1e5 + 5;
int a[N];

int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n;
    read(n);
    for (int i = 1; i <= n; ++i)
        read(a[i]);
    sort(a + 1, a + n + 1);
    int pos = 1;
    for (int i = 2; i <= n; ++i)
        if (a[pos] < a[i])
        {
            ++pos;
        }
    writeln(n - pos + 1);
    return 0;
}
